package com.ruoyi.asset.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 资产类别对象 financial_asset_category
 * 
 * @author ruoyi
 * @date 2025-03-05
 */
public class AssetCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 资产类别编码 */
    @Excel(name = "资产类别编码")
    private String categoryCode;

    /** 资产类别名称 */
    @Excel(name = "资产类别名称")
    private String categoryName;

    /** 折旧方法 */
    @Excel(name = "折旧方法")
    private String depreciationMethod;

    /** 预计使用年限 */
    @Excel(name = "预计使用年限")
    private Long expectedUseYears;

    /** 使用月份 */
    @Excel(name = "使用月份")
    private Long useMonths;

    /** 预计净残值率 */
    @Excel(name = "预计净残值率")
    private BigDecimal residualRate;

    /** 固定资产科目 */
    @Excel(name = "固定资产科目")
    private String fixedAssetsSubject;

    /** 累计折旧科目 */
    @Excel(name = "累计折旧科目")
    private String accumulatedDepSubject;

    /** 状态（1启用 2禁用） */
    @Excel(name = "状态", readConverterExp = "1=启用,2=禁用")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryCode(String categoryCode) 
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode() 
    {
        return categoryCode;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setDepreciationMethod(String depreciationMethod) 
    {
        this.depreciationMethod = depreciationMethod;
    }

    public String getDepreciationMethod() 
    {
        return depreciationMethod;
    }
    public void setExpectedUseYears(Long expectedUseYears) 
    {
        this.expectedUseYears = expectedUseYears;
    }

    public Long getExpectedUseYears() 
    {
        return expectedUseYears;
    }
    public void setUseMonths(Long useMonths) 
    {
        this.useMonths = useMonths;
    }

    public Long getUseMonths() 
    {
        return useMonths;
    }
    public void setResidualRate(BigDecimal residualRate) 
    {
        this.residualRate = residualRate;
    }

    public BigDecimal getResidualRate() 
    {
        return residualRate;
    }
    public void setFixedAssetsSubject(String fixedAssetsSubject) 
    {
        this.fixedAssetsSubject = fixedAssetsSubject;
    }

    public String getFixedAssetsSubject() 
    {
        return fixedAssetsSubject;
    }
    public void setAccumulatedDepSubject(String accumulatedDepSubject) 
    {
        this.accumulatedDepSubject = accumulatedDepSubject;
    }

    public String getAccumulatedDepSubject() 
    {
        return accumulatedDepSubject;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryCode", getCategoryCode())
            .append("categoryName", getCategoryName())
            .append("depreciationMethod", getDepreciationMethod())
            .append("expectedUseYears", getExpectedUseYears())
            .append("useMonths", getUseMonths())
            .append("residualRate", getResidualRate())
            .append("fixedAssetsSubject", getFixedAssetsSubject())
            .append("accumulatedDepSubject", getAccumulatedDepSubject())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
